<?php

/**
 * Villages form.
 *
 * @package    costabravasfr
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class VillagesForm extends BaseVillagesForm
{
  public function configure()
  {
    //Following code will remove Required validators from these fields.
  unset($this['created_at'],$this['updated_at']);
  $this->validatorSchema['nomVillage'] = new sfValidatorString(array(), array('required' => 'Renseignez svp le nom du village.'));
  $this->validatorSchema['descPreVillage'] = new sfValidatorString(array(), array('required' => 'Renseignez svp une petite description du village.'));

  $this->validatorSchema['descVillage'] = new sfValidatorString(array(), array('required' => 'Renseignez svp le contenu'));
	$this->widgetSchema['descVillage'] = new sfWidgetFormCKEditor();
	$editor = $this->widgetSchema['descVillage']->getEditor();
	//$editor->config['param'] = value;
	//$finder = $this->widgetSchema['descVillage']->getFinder();
  }
}
